]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellDBus: don't consider a zero-index monitor invalid
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 13 Nov 2014 18:01:56 +0000 (10:01 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 13 Nov 2014 18:05:59 +0000 (10:05 -0800)
Currently, shellDBus only uses the passed in monitor index if it's
strictly > 0. A zero-index monitor is a valid one though, so don't
restrict this to strictly positive indices.

https://bugzilla.gnome.org/show_bug.cgi?id=740074

js/ui/shellDBus.js

index a87ea4171eb1a5c8e21cd1c9e63f0ec28d55ff75..4ef03c1496c763f32be418f605b183c9bb8dac7b 100644 (file)
@@ -134,7 +134,7 @@ const GnomeShell = new Lang.Class({
             params[param] = params[param].deep_unpack();
 
         let monitorIndex = -1;
-        if (params['monitor'])
+        if (params['monitor'] >= 0)
             monitorIndex = params['monitor'];
 
         let icon = null;